package com.tedu.service.Impl;

import com.tedu.dao.repository.ITripRepository;
import com.tedu.pojo.entity.Trip;
import com.tedu.pojo.param.TripParam;
import com.tedu.pojo.vo.TripVo;
import com.tedu.service.ITripService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TripServiceImpl implements ITripService {
    @Autowired
    private ITripRepository repository;
    @Override
    public List<TripVo> selectTripById(int id) {
        return repository.selectById(id);
    }

    @Override
    public int addTrip(TripParam tripParam) {
        return 0;
    }

    @Override
    public int deleteTrip(int id) {
        return 0;
    }





    @Override
    public TripParam selectTripAll() {
        return null;
    }

    @Override
    public int modifyTrip(Trip trip) {
        return 0;
    }

}
